package study.edumanagesystemspringboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import study.edumanagesystemspringboot.entity.Student;
import study.edumanagesystemspringboot.mapper.StudentMapper;
import study.edumanagesystemspringboot.service.IStudentService;

import java.util.List;

/**
 * @author zouran
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {
    private final StudentMapper studentMapper;

    public StudentServiceImpl(StudentMapper studentMapper) {
        this.studentMapper = studentMapper;
    }

    @Override
    public List<Student> queryAll() {
        return studentMapper.queryAll();
    }
}


